2.2 Starting a Router  
  2.2.9 Troubleshooting command line errors  

Command line errors occur primarily from typing mistakes. If a command keyword is incorrectly typed the user interface provides error isolation in the form of an error indicator (^). The "^" symbol appears at the point in the command string where an incorrect command, keyword, or argument was entered. The error location indicator and interactive help system allow the user to easily find and correct syntax errors.

Router#clock set 13:32:00 23 February 93

^  

% Invalid input detected at "^" marker.

The caret symbol (^) and help response indicate an error at 93. To list the correct syntax, enter the command up to the point where the error occurred and then enter a question mark (?):

Router#clock set 13:32:00 23 February ?
<1993-2035> Year
Router#clock set 13:32:00 23 February

Enter the year using the correct syntax and press Return to execute the command.

Router#clock set 13:32:00 23 February 1993

If a command line is entered incorrectly, and the enter key is pressed, the up arrow can be pressed to repeat the last command. Use the right and left arrow keys to move the cursor to the location where the mistake was made. Then type the correction that needs to be made. If something needs to be deleted, use the <backspace> key.

 

Lab Activity

Lab Exercise: Command Line Fundamentals

In this lab, the student will log into a router in both user and privileged modes and use several basic router commands to determine how the router is configured.

   
 

Web Links

editing Command

http://www.cisco.com/en/US/products/sw/ iosswrel/ps1835/products_command_reference_ chapter09186a00800ca73c.html#1017434